$(document).ready(function(){
	$('ul.attractions li a[title]').each(function(index) {
		var str = $(this).attr('title');
		
		$(this).qtip({
			position: {
				corner: {
					target: 'bottomRight',
					tooltip: 'topLeft'
				}
			},
			style: {
				name: 'cream',
				padding: '7px 13px',
				fontSize: '12px',
				fontFamily: 'Arial',
				width: {
					max: (str.length > 1500 ? 1000 : 500),
					min: 0
				},
				tip: true
			},
			show: {
				effect: {
					type: 'grow',
					length: 400
				}
			},
			hide: {
				effect: {
					type: 'grow',
					length: 400
				}
			}
		});
	});
});